<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java"  pageEncoding="UTF-8" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>宠物病历增加页面</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="${pageContext.request.contextPath}/static/css/css.css" rel="stylesheet" type="text/css">

    <style type="text/css">
        #content {
            position: relative;
            top: 3px;
            width: 80%;
            height: 380px;
            margin: auto;
            overflow: hidden;
            z-index: 2;
        }

        .tab1 {
            position: relative;
            top: 60px;
            font-size: 24px;
        }

        #in1, #in2, #in3 ,#in6{
            width: 250px;
            height: 30px;
            font-size: 24px;
        }
    </style>

</head>
<body>
<!-- include top -->
<jsp:include page="${pageContext.request.contextPath}/top.jsp" flush="true"/>
<center>
    <div id="content">
        <c:if test="${msg!=null}">
            <span style="color: red">${msg}</span>
        </c:if>
       <form action="${pageContext.request.contextPath}/visit/addVisit" method="post" onsubmit="return checkId()">
           <table border="0" cellpadding="0" cellspacing="2" class="tab1">
               <tr align="center">
                   <td>宠物名称&nbsp;</td>
                   <td><input type="text"  readonly  name="petName" id="in1" value="${pet.name}">
                   </td>
               </tr>
               <tr align="center">
                   <td>主人名称&nbsp;</td>
                   <td><input type="text"  readonly  id="in6" value="${pet.owners.name}"/>
                   </td>
               </tr>
               <tr align="center">
                   <td>宠物类型&nbsp;</td>
                   <td><input type="text" readonly id="in3" value="${pet.typeName}"/>
                   </td>
               </tr>
               <tr align="center">
                   <td>录入日期&nbsp;</td>
                        <td><input type="text" readonly value="${petBirthDate}"  id="in2" />
                   </td>
               </tr>
               <tr>
                   <td>病历描述&nbsp;</td>
                   <td>
                       <textarea rows="3" name="description" cols="19"></textarea>
                   </td>
               </tr>
               <tr align="center">
                   <td colspan="2">
                       <input type="hidden" name="petId" value="${pet.id}">
                       <input class="btn btn-default" type="submit" value="增加" >
                       <a class="btn btn-default"
                          href="${pageContext.request.contextPath}/pet/toUpdatePet?name=${pet.name}"
                          role="button">放弃</a>
                       <input class="btn btn-default" type="reset" value="清空" >
                   </td>
               </tr>
           </table>
       </form>
    </div>
</center>
<!-- include footer -->
<jsp:include page="${pageContext.request.contextPath}/footer.jsp" flush="true"/>
</body>
</html>
